package com.test.springCloud.service.impl;

import com.test.springCloud.mapper.DeptMapper;
import com.test.springCloud.service.DeptService;
import com.test.springcloud.pojo.DeptPojo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("DeptService")
public class DeptServiceImpl implements DeptService {

    @Resource
    DeptMapper deptMapper;

    public Integer insertDept(DeptPojo deptPojo) {
        return deptMapper.insertDept(deptPojo);
    }

    public List<DeptPojo> getAllDept() {
       return deptMapper.getAllDept();
    }
}
